package com.pronhub.cloud.shop.web.feign;

import com.pronhub.shop.cloud.Result;
import com.pronhub.cloud.shop.service.IUserService;
import com.pronhub.cloud.shop.filter.TokenFeignApi;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RestController;
@RestController
public class TokenFeignClient implements TokenFeignApi {
    @Autowired
    private IUserService userService;
    @Override
    public Result<Boolean> refreshToken(String token) {
        return Result.success(userService.refreshToken(token));
    }
}
